package modellayer;

public class SubLoan 
{
	private String lenght;
	private Copy borrowedCopy;
	private String startDate;

	/**
	 * contructor of the class SubLoan
	 * @param lenght
	 * @param state
	 */
	public SubLoan(Copy borrowedCopy, String startDate, String lenght) 
	{
		this.lenght = lenght;
		this.startDate = startDate;
		this.borrowedCopy = borrowedCopy;
	}

	/**
	 * Gets the borrowed.
	 *
	 * @return the borrowed
	 */
	public String getBorrowed()
	{
		return borrowedCopy.getTitle()+"(Serial: "+borrowedCopy.getSerialNumber()+ ")";
	}
	
	/**
	 * @return borrowedCopy Copy
	 */
	public Copy getBorrowedCopy()
	{
		return borrowedCopy;
	}
}
